package com.dmap.admin.po;

import java.io.Serializable;

public class AdminRolePermissions implements Serializable {
    /**
     * 主键id
     * 表字段 : admin_role_permissions.id
     */
    private Long id;

    /**
     * 角色id,外键
     * 表字段 : admin_role_permissions.role_id
     */
    private Long roleId;

    /**
     * 权限id，外键
     * 表字段 : admin_role_permissions.permissions_id
     */
    private Long permissionsId;

    /**
     * 记录创建时间戳，单位秒
     * 表字段 : admin_role_permissions.create_time
     */
    private Long createTime;

    /**
     * 记录修改时间戳，单位秒
     * 表字段 : admin_role_permissions.modify_time
     */
    private Long modifyTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table admin_role_permissions
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table admin_role_permissions
     *
     * @mbggenerated
     */
    public AdminRolePermissions(Long id, Long roleId, Long permissionsId, Long createTime, Long modifyTime) {
        this.id = id;
        this.roleId = roleId;
        this.permissionsId = permissionsId;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table admin_role_permissions
     *
     * @mbggenerated
     */
    public AdminRolePermissions() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_role_permissions.id
     *
     * @return the value of admin_role_permissions.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_role_permissions.id
     *
     * @param id the value for admin_role_permissions.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_role_permissions.role_id
     *
     * @return the value of admin_role_permissions.role_id
     *
     * @mbggenerated
     */
    public Long getRoleId() {
        return roleId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_role_permissions.role_id
     *
     * @param roleId the value for admin_role_permissions.role_id
     *
     * @mbggenerated
     */
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_role_permissions.permissions_id
     *
     * @return the value of admin_role_permissions.permissions_id
     *
     * @mbggenerated
     */
    public Long getPermissionsId() {
        return permissionsId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_role_permissions.permissions_id
     *
     * @param permissionsId the value for admin_role_permissions.permissions_id
     *
     * @mbggenerated
     */
    public void setPermissionsId(Long permissionsId) {
        this.permissionsId = permissionsId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_role_permissions.create_time
     *
     * @return the value of admin_role_permissions.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_role_permissions.create_time
     *
     * @param createTime the value for admin_role_permissions.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column admin_role_permissions.modify_time
     *
     * @return the value of admin_role_permissions.modify_time
     *
     * @mbggenerated
     */
    public Long getModifyTime() {
        return modifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column admin_role_permissions.modify_time
     *
     * @param modifyTime the value for admin_role_permissions.modify_time
     *
     * @mbggenerated
     */
    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table admin_role_permissions
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleId=").append(roleId);
        sb.append(", permissionsId=").append(permissionsId);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append("]");
        return sb.toString();
    }
}